import React,{useContext} from 'react';
import { AppContext } from "../../App"
export default function Footer(props){
    const {setCount}=useContext(AppContext);
    const changeCount =()=>{
        setCount(x=>x+1)
    }
    return <div><h2>Footer</h2>
    <button onClick={changeCount}>修改count</button>
    </div>
}